package com.jifeng.api.constant;

import lombok.Data;

/**
 * @author JiFeng
 */

public enum HttpStatusEnum {
    HTTP_OK("200","成功"),

    HTTP_SYSTEM_ERROR("500","系统繁忙"),
    HTTP_ACCESS_LIMIT("400","请求超时，请稍后再试"),

    HTTP_TERMINAL_EXIT("A0100","该机柜已存在，无需重复添加"),
    HTTP_TERMINAL_NO_EXIT("A0101","该机柜不存在"),
    HTTP_TERMINAL_ADD("B0100","增加机柜失败"),
    HTTP_TERMINAL_UPDATE("B0101","更新机柜失败"),
    HTTP_TERMINAL_DELETE("B0102","删除机柜失败"),

    HTTP_ORDER_NO_EXIT("A0301","该订单不存在"),
    HTTP_ORDER_OVER("A0302","该订单已结束"),
    HTTP_ORDER_NO_OVER("A0303","该订单未结束")
    ;
    private String code;
    private String msg;

    HttpStatusEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
